<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>测测你的宅腐基指数-首页</title>

    <script type="text/javascript" src="script/jquery.min.js"></script>

    <link href="css/main.css" type="text/css" rel="stylesheet" />

    <script type="text/javascript" language="javascript" src="script/jquery.min.js"></script>

    <script type="text/javascript" language="javascript" src="script/json2.js"></script>

    <script type="text/javascript" language="javascript">
        (function() {
            var _skin, _jQuery;
            document.write('<scr' + 'ipt src="script/dialogs/artDialog.source.js?skin=' + (_skin || 'blue') + '"></sc' + 'ript>');
            window._isDemoSkin = !!_skin;
        })();

    </script>

    <script type="text/javascript" language="javascript" src="script/dialogs/artDialog_helper.js"></script>

    <script type="text/javascript" language="javascript">

        function showSucceedMsg(title, msg) {
            var dialog = art.dialog({
                title: title,
                content: msg,
                background: '#CCC',
                icon: 'succeed',
                ok: true,
                zIndex: 9999
            });
        }

        function showErrMsg(title, msg) {
            var dialog = art.dialog({
                title: title,
                content: msg,
                background: '#CCC',
                icon: 'warning',
                cancelVal: '关闭',
                cancel: true,
                zIndex: 9999
            });
        }
    
        $(document).ready(function() {
        $("div .btn_weibo_login").bind("click", function() {
            var url = "AccountHandler.ashx?Type=sina&Action=login&" + Math.random();
                $.get(url, null, function(data) {
                    document.location.href = data;
                }, "text");
            });
            var href = document.location.href;
            if (href.indexOf('?') == -1)
                return;
            else {
                var queryString = href.substring(href.indexOf('?'));
                $.get("AccountHandler.ashx" + queryString, { Type: "Sina", Action: "verifier" },
		            function(data) {
		                if (data == "sucess") {
		                    document.location.href = "Case.html";
		                } else {
		                    data = eval('(' + data + ')');
		                    showErrMsg("提示", data.msg);
		                }
		            }, "text");
            }
        });
    </script>

</head>
<body>
    <div id="wrapper" class="body01">
        <a href="http://www.e-lining.com/" class="pos b_logo" title="进入李宁官方网站"></a><a href="#" class="pos btn_weibo_login"
            title="用微博帐户登录"></a>
    </div>
</body>
</html>
